#include "cSqNsFinite.h"

SqNsFinite::SqNsFinite(){
	setName("Finite non-symmetrical sq. well");
	setUniverse(100.0);
	setWidth(10.0);
	setPotLeft(-1.0*getWidth()/2.0);
	setPotRight(getWidth()/2.0);
	setFx(getUniverse()/2.0);
	setTx(-1*getUniverse()/2.0);
        setUniLeft(-1.0*getUniverse()/2.0);
        setUniRight(getUniverse()/2.0);
	setDepth(10.0);
	setMinEnergy(-1*getDepth());
	//filter[activefilter]->calculate(this);
}

SqNsFinite::~SqNsFinite(){
}

double SqNsFinite::getPotentialValueAt(double x) {
	if (fabs(x) >= 5.0) {return 0.0;}
	else if (x > -5.0 && x < 0.0) {return -10.0;}
	else if(x >= 0.0 && x < 5.0) {return -5.0;}
	return 0.0;
}

